home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20030409-20031118
/
000395_anthonypieper@cs.com_Fri Nov 7 09:36:48 2003.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Path: newsmaster.cc.columbia.edu!panix!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!news.maxwell.syr.edu!postnews1.google.com!not-for-mail
From: anthonypieper@cs.com (newexpectuser)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: How do I pass a password in a kermit script
Date: 7 Nov 2003 05:07:04 -0800
Organization: http://groups.google.com
Lines: 54
Message-ID: <f0bb0f39.0311070507.1017babd@posting.google.com>
References: <f0bb0f39.0310300922.3c050ba8@posting.google.com> <slrnbq2iv8.oe.fdc@sesame.cc.columbia.edu> <m14qxn4nlk.gnus@usa.net> <bo5o0u$kqm$1@newsmaster.cc.columbia.edu> <f0bb0f39.0311031218.7169c675@posting.google.com> <Pine.HPX.4.44.0311031239110.3588-100000@fog.ccsf.cc.ca.us> <f0bb0f39.0311040516.50768d0a@posting.google.com> <slrnbqferq.6oa.fdc@sesame.cc.columbia.edu>
NNTP-Posting-Host: 209.251.39.194
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1068210425 12013 127.0.0.1 (7 Nov 2003 13:07:05 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 7 Nov 2003 13:07:05 +0000 (UTC)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14649
If anybody is interested, I use EXPECT to spawn a Kermit session, this
way I can pass a password.
Frank da Cruz <fdc@columbia.edu> wrote in message news:<slrnbqferq.6oa.fdc@sesame.cc.columbia.edu>...
> In article <f0bb0f39.0311040516.50768d0a@posting.google.com>,
> newexpectuser wrote:
> : I don't think though that any version of Kermit can automatically
> : delete a file it just transfered successfully though ?
> :
> Something seems to be wrong with our news server. The original copy of the
> following post never showed up... Anyway, as the the above -- as Jeff said,
> yes, of course Kermit can do that. For much more about Kermit's capabilities
> in this area ("atomic file movement" or "transaction processing"), see:
>
> http://www.columbia.edu/kermit/case10.html
>
> and (as an ftp client):
>
> http://www.columbia.edu/kermit/ftpscripts.html
>
> : Mark Sapiro <msapiro@ccsf.edu> wrote in
> : message news:<Pine.HPX.4.44.0311031239110.3588-100000@fog.ccsf.cc.ca.us>...
> :> On 3 Nov 2003, newexpectuser wrote:
> :> ...
> :> I don't know if this helps or not, but this is what I do with C-Kermit
> :> 8.0.209 on FreeBSD Unix.
> :>
> :> \m(rhost) and \m(rdomain) are set earlier in the script.
> :> ...
> :> assign pswd1 not
> :> assign pswd2 equal
> :> while not equal {\m(pswd1)} {\m(pswd2)} {
> :> askq pswd1 {Password for \v(userid) on \m(rhost):}
> :> askq pswd2 {Reenter to confirm:}
> :> }
> :> set host /pty ssh -e none -l \v(userid) \m(rhost).\m(rdomain)
> :> if fail end 1 Unable to connect to \m(rhost).
> :> input 20 assword:
> :> if fail end 1 No password prompt.
> :> output \m(pswd1)\13
> :> ...
> :>
> :> The input and output statements see the password prompt from ssh
> :> and supply the password. It works in my situation.
> :
> Right, this would be one way to do it, if it can be done. But it might also
> be the case that an ssh client does not use /dev/tty when prompting for the
> password. If yours does, fine. If not, scripting the interaction will
> be a challenge.
>
> In any case, as Jeff says, the scripts in the script library are examples,
> samples to be taken as starting points. Readers have always been welcome to
> make contributions. The invitation still stands.
>
> - Frank